#include "pthread_impl.h"

int __pthread_mutex_getprioceiling(const pthread_mutex_t *restrict m, int *restrict prioceiling)
{
    if ((m == NULL) || (prioceiling == NULL)) {
        return EINVAL;
    }

    *prioceiling = (m->_m_type >> 8) & 0x000000ff;
    return 0;
}

weak_alias(__pthread_mutex_getprioceiling, pthread_mutex_getprioceiling);
